package com.christian.labs;

import android.app.Activity;
import android.os.Bundle;

import com.google.zxing.BinaryBitmap;
import com.google.zxing.LuminanceSource;
import com.google.zxing.ReaderException;
import com.google.zxing.Result;
import com.google.zxing.common.HybridBinarizer;
import com.google.zxing.qrcode.QRCodeReader;

public class Main extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        LuminanceSource source = new MyLuminanceSource(null, 0, 0, 0, 0, 0, 0);
        
        BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
        QRCodeReader reader = new QRCodeReader();
        try {
			
        	Result r = reader.decode(bitmap);
			
		} catch (ReaderException re) {
		      // continue
	    } finally {
	      reader.reset();
	    }
        
        
    }
}